﻿// (c) Copyright 2012 by Michael P. Ferrell
// MikeFerrell@acm.org
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MPFerrell.Ftf
{
    class FtfParameterDef
    {
        protected string _Name = "", _Desc = "";
        public FtfParameterDef()
        {
            _Name = "";
            _Desc = "";
        }

        public FtfParameterDef(string NameIn, string DescIn)
        {
            _Name = NameIn;
            _Desc = DescIn;
        }

        public string Name {
            get
            {
                return _Name;
            }
        }
        public string Desc
        {
            get
            {
                return _Desc;
            }
        }

        public bool IsEqualTo(FtfParameterDef OtherDefIn)
        {
            if (OtherDefIn == null)
            {
                return false;
            }
            return (this.Name == OtherDefIn.Name) && (this.Desc == OtherDefIn.Desc);
        }

        public void CopyFrom(FtfParameterDef OtherDefIn)
        {
            this._Name = OtherDefIn.Name;
            this._Desc = OtherDefIn.Desc;
        }
    }
}
